From: | Allan Odgaard |
Date: | 11 Aug 99 at 23:12:29 |
Subject: | Re: ENV and ENVARC |
From: Allan Odgaard <Duff@DIKU.DK>
On 11-Aug-99, Mike Carter wrote:
> Use = save to ENV:
> Save = save to ENVARC:
Well, save should do both. In most apps you'd do something like:
switch(action)
{
case ACTION_SAVE:
Save("EnvArc:" PROGRAM ".Prefs");
case ACTION_USE:
Save("Env:" PROGRAM ".Prefs");
break;
case ACTION_CANCEL:
Load("Env:" PROGRAM ".Prefs");
break;
}
Regards Allan